package martial.arts.tracker

class Student {

    String studentId
    String lastName
    String firstName
//    String belt
    Date dob
    Date lastBeltTestDate
    Date dateCreated
    Date lastUpdated
    String email
    Belt belt


    static belongsTo = [account: Account]


    static constraints = {
        studentId()
        lastName()
        firstName()
        belt()
        dob()
        lastBeltTestDate()
        dateCreated()
        email(nullable: true)
    }



    String toString() {return "${lastName}, ${firstName}, ${belt}" }
}
